<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
    <div th:text="${user.id}"></div><br>
    <div th:text="${user.name}" style="color: red"></div><br>
    <div th:text="${user.age}"></div>

    <font>==========================</font><br>
    <h1>选择表达式（*号表达式）</h1>
    <div th:object="${user}">
        <span th:text="*{id}"></span><br>
        <span th:text="*{name}"></span><br>
        <span th:text="*{age}"></span>
    </div>
</body>
</html>